package com.ggb.smartstudy.mapper;

import com.ggb.smartstudy.entity.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author gefangjie
 */
@Mapper
public interface PermissionMapper {
    Permission getPermissionById(Integer id);

    List<Permission> getAllPermissions();

    void insertPermission(Permission permission);

    void updatePermission(Permission permission);

    void deletePermission(Integer id);
}
